#ifndef ALBUM_H
#define ALBUM_H

#include <lvgl.h>
#include <SD.h>
#include <TJpg_Decoder.h>
#include "../../common.h"

extern const lv_img_dsc_t album_icon;

class Album
{
    private:
	lv_obj_t* img_scr=NULL;
    lv_obj_t* img=NULL;
	int rgb_value[3]={0};
	long timecal;
	uint16_t * jpg_buf;
    int num_photo = 0;
    String photo_list[100];
    int no_photo = 0;
	Action action;
	void display_ani();
	lv_obj_t *label=NULL;
	lv_style_t font_style;

    public:
	bool is_update_rgb = false;
	Album();
	~Album();
	Event main_process(Action);
	
};

#endif